import httpRequest from '@/utils/httpRequest'
import constant from './constant'

export function reqByEnv (data) {
  return httpRequest({
    url: constant.DR + '/log/reqByEnv',
    method: 'post',
    data: data
  })
}
export function createCase (data) {
  return httpRequest({
    url: constant.DR + '/log/createCase',
    method: 'post',
    data: data
  })
}
export function pageList (data) {
  return httpRequest({
    url: constant.DR + '/log/page',
    method: 'post',
    data: data
  })
}
export function listRuleLog (data) {
  return httpRequest({
    url: constant.DR + '/log/listRuleLog',
    method: 'post',
    data: data
  })
}
export function logDetail (data) {
  return httpRequest({
    url: constant.DR + '/log/logDetail',
    method: 'post',
    data: data
  })
}
export function apiLogPage (url, data) {
  return httpRequest({
    url: `${url}/log/pageScene`,
    method: 'post',
    data: data
  })
}
export function apiRuleLog (url, data) {
  return httpRequest({
    url: `${url}/log/listGroupByScene`,
    method: 'post',
    data: data
  })
}
export function apiRuleLogDetail (url, data) {
  return httpRequest({
    url: `${url}/log/logDetail`,
    method: 'post',
    data: data
  })
}
